#!/bin/sh

# Build zipfiles for libgnome on Win32. Separate runtime and developer
# ones. Run after make install.

ZIP=/tmp/libgnome-@VERSION@.zip
DEVZIP=/tmp/libgnome-dev-@VERSION@.zip

cd @prefix@
rm $ZIP

zip $ZIP -@ <<EOF
bin/libgnome-2-0.dll
bin/gnome-open.exe
etc/gconf/schemas/desktop_gnome_accessibility_keyboard.schemas
etc/gconf/schemas/desktop_gnome_accessibility_startup.schemas
etc/gconf/schemas/desktop_gnome_applications_browser.schemas
etc/gconf/schemas/desktop_gnome_applications_help_viewer.schemas
etc/gconf/schemas/desktop_gnome_applications_terminal.schemas
etc/gconf/schemas/desktop_gnome_applications_window_manager.schemas
etc/gconf/schemas/desktop_gnome_background.schemas
etc/gconf/schemas/desktop_gnome_file_views.schemas
etc/gconf/schemas/desktop_gnome_interface.schemas
etc/gconf/schemas/desktop_gnome_lockdown.schemas
etc/gconf/schemas/desktop_gnome_peripherals_mouse.schemas
etc/gconf/schemas/desktop_gnome_peripherals_keyboard.schemas
etc/gconf/schemas/desktop_gnome_sound.schemas
etc/gconf/schemas/desktop_gnome_thumbnailers.schemas
etc/gconf/schemas/desktop_gnome_typing_break.schemas
etc/sound/events/gnome-2.soundlist
etc/sound/events/gtk-events-2.soundlist
lib/bonobo/monikers/libmoniker_extra_2.dll
lib/bonobo/servers/GNOME_Moniker_std.server
EOF

zip -r $ZIP etc/gconf/gconf.xml.defaults

if [ -f share/locale/de/LC_MESSAGES/libgnome-2.0.mo ]; then
  zip $ZIP share/locale/*/LC_MESSAGES/libgnome-2.0.mo
else
  zip $ZIP lib/locale/*/LC_MESSAGES/libgnome-2.0.mo
fi

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
lib/libgnome-2.dll.a
lib/pkgconfig/libgnome-2.0.pc
include/libgnome-2.0
share/gtk-doc/html/libgnome
EOF
